package org.jeecg.modules.health_records.health_voucher.service.impl;

import org.jeecg.modules.health_records.health_voucher.entity.HealthVoucherInfo;
import org.jeecg.modules.health_records.health_voucher.mapper.HealthVoucherInfoMapper;
import org.jeecg.modules.health_records.health_voucher.service.IHealthVoucherInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Description: 个人健康凭证信息
 * @Author: jeecg-boot
 * @Date:   2025-06-25
 * @Version: V1.0
 */
@Service
public class HealthVoucherInfoServiceImpl extends ServiceImpl<HealthVoucherInfoMapper, HealthVoucherInfo> implements IHealthVoucherInfoService {
    @Autowired
    private HealthVoucherInfoMapper healthVoucherInfoMapper;
    /**按recordid查询**/
    @Override
    @Transactional(rollbackFor = Exception.class)
    public List<HealthVoucherInfo> queryByRecordId(HealthVoucherInfo healthVoucherInfo) {
        return healthVoucherInfoMapper.queryByRecordId(Long.valueOf(healthVoucherInfo.getRecordid()),healthVoucherInfo.getIdNumber());

    }
}
